package com.atguigu;

import com.alibaba.fastjson.JSON;
import com.atguigu.commonutils.R;
import com.atguigu.eduservice.entity.chapter.ChapterVo;
import com.atguigu.eduservice.mapper.EduCourseMapper;
import com.atguigu.eduservice.service.impl.EduTeacherServiceImpl;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class cs {

    @Autowired
    private EduTeacherServiceImpl teacherService;

    @Autowired
    private EduCourseMapper courseMapper;

    @Test
    public void cs(){
        List<ChapterVo> chapterVos = courseMapper.selectChapterVideos("1631455234213548033");
        String s = JSON.toJSONString(chapterVos);
        System.out.println("查询到的结果是："+s);
    }

}